package com.benlai.newretail.service.impl;

import com.benlai.newretail.dao.IRoleData;
import com.benlai.newretail.entity.Role;
import com.benlai.newretail.service.IRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author:gaoxu;
 * @Email:gaoxu@benlai.com
 * @DATE:2017-12-12
 * @version:ver1.0.0
 * @Description: Created by gaoxu on 2017-12-12.
 */

@Service
public class RoleServiceImpl implements IRoleService {

    @Autowired
    private IRoleData roleData;

    /**
     * 根据sysNo获取角色对象
     *
     * @param sysNO
     * @return
     */
    @Override
    public Role getRoleById(Integer sysNO) {
        return roleData.getSysNo(sysNO);
    }
}
